package cn.wildfirechat.voipdemo;

import cn.wildfirechat.sdk.utilities.AdminHttpUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;

@Configuration
public class AdminConfig {

    @Value("${admin.server.uri}")
    private String adminServerUri;

    @Value("${admin.server.secret}")
    private String adminServerSecret;

    @PostConstruct
    public void init() {
        AdminHttpUtils.init(adminServerUri, adminServerSecret);
    }

}
